package com.zrq.jwtdemo.core.prop;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: zrq
 * @CreateDate: 2020/12/10
 * @Version: 类说明： jwt的属性
 */
@Configuration      //定义配置spring配置类，可被spring初始化
@ConfigurationProperties("jwt")    //属性文件中获取数据
@Data
@Builder
public class JwtProp {

    private String header;

    private String key;

    private Integer expiration;

    @Tolerate
    public JwtProp() {
    }
}
